package com.yx.fx.my.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yx.fx.my.entity.BankEmp;
import com.yx.fx.my.mapper.BankEmpMapper;
import com.yx.fx.my.service.BankEmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BankEmpServiceImpl extends ServiceImpl<BankEmpMapper, BankEmp> implements BankEmpService {
    @Autowired
    private BankEmpMapper empMapper;

    @Override
    public List<BankEmp> getEmpListLikeName(String empName) {
        QueryWrapper<BankEmp> empQueryWrapper = new QueryWrapper<>();
        empQueryWrapper.like("name", empName);
        empMapper.selectList(empQueryWrapper);
        return empMapper.selectList(empQueryWrapper);
    }
}
